package org.op.tbar;

import java.awt.Component;

import javax.swing.JLabel;
import javax.swing.JToolBar;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;

import org.op.ComponentView;
import org.op.Controller;

public class ToolBarViewImpl implements ComponentView {

	private Component component;
	private Controller controller;
	
	public ToolBarViewImpl() {
		
	}
	
	public void build() {
		JToolBar toolBar = new JToolBar();
		
		// This is a JGoodies option
		//toolBar.putClientProperty(Options.HEADER_STYLE_KEY, Boolean.TRUE);
		
        JLabel label = new JLabel("TOOLBAR");
        label.setHorizontalAlignment(SwingConstants.CENTER);
        label.setBorder(new EmptyBorder(3, 3, 3, 3));
		
        toolBar.add(label);
		
		component = toolBar;
	}

	public Component getComponent() {
		return component;
	}

	public void setComponent(Component component) {
		this.component = component;
	}

	public Controller getController() {
		return controller;
	}

	public void setController(Controller controller) {
		this.controller = controller;
	}

}
